﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace ADO_QLNS.Utils
{
    public class ConfigurationManager
    {
        private static Hashtable htConfigs = new Hashtable();

        public static void RegisterType(string Type)
        {
            htConfigs.Add(Type, new Hashtable());
        }

        public static void RegisterValue(string Type, string name, string value)
        {
            ((Hashtable)htConfigs[Type]).Add(name, value);
        }

        public static string GetConfig(string Type, string Name)
        {
            return ((Hashtable)htConfigs[Type])[Name].ToString();
        }
    }
}
